﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static 凯蒽斯.Dto.type;

namespace 凯蒽斯.Dto
{
    public class ModbusSetting
    {
        [SugarColumn( IsNullable = true)]
        public int unitId { get; set; }
        [SugarColumn(ColumnName = "startAddress")]
        public int startAddress { get; set; }
        public int count { get; set; }
        public int FunctionCode { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
        public string Description { get; set; }

        public Status PlcType {  get; set; }
    }
    public class type
    {
        public enum Status
        {
            BOOL,
            BYTE,
            INT,
            WORD,
            REAL,
            LREAL,
            UINT,
            DWORD
        }

    }
}
